# from django.urls import path
# from .views import home, results
#
# urlpatterns = [
#     path('', home, name='home'),
#     path('results/', results, name='results'),
# ]
from django.urls import path
from . import views

# urlpatterns = [
#     path('index/', views.index),
#     path('result/<int:entry_id>/', views.result, name='result')
# ]

from django.urls import path
# from . import views
# from .views import index, login_view, register_view, help_document_view
#
#
# urlpatterns = [
#     # path('index/', views.index),
#     path('index/', index, name='index'),  # 确保这里的 name 是 'index'
#     path('result/<int:entry_id>/', views.result, name='result'),
#     path('login/', login_view, name='login'),
#     path('register/', register_view, name='register'),
#     path('help/', help_document_view, name='help_docs'),
# ]


from django.urls import path
from .views import index, login_view, register_view, segment_text, result, help_document_view

urlpatterns = [
    path('', index, name='home'),  # 设置主页路由
    path('', index, name='index'),
    path('login/', login_view, name='login'),
    path('register/', register_view, name='register'),
    path('segment/', segment_text, name='segment'),
    path('result/<int:entry_id>/', result, name='result'),
    path('help/', help_document_view, name='help'),
    path('help/', views.help_document_view, name='help_document'),
]



